home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Light ROM 3
/
Light ROM 3 - Disc 2.iso
/
programs
/
amiga
/
macromkr
/
ripplean.lzh
/
SimpleRipple_decrease.fred.pre
< prev
next >
Wrap
Text File
|
1993-10-02
|
868b
|
45 lines
/* SimpleRipple_decrease.fred.pre
** Clips Exported:
** FREDPhase - Current Phase amount (degrees)
** FREDPhaseIncrement - Phase increment per frame
** FREDOverrideLength - Override Length parameter flag
** (if 1, override the Length)
** NOTE: Clip names are case sensitive.
**
** This script requires FRED v1.2.0 (or higher) to run. Also required is
** ADPro v2.0.0 or MorphPlus v1.0.0.
*/
ADDRESS "ADPro"
OPTIONS RESULTS
PARSE ARG NumberOfCells NumberOfFrames
NL = '0A'X
/*
** Ensure that at least two frames are to be processed.
*/
IF (NumberOfFrames < 2) THEN DO
ADPRO_TO_FRONT
OKAY1 "Frame count must be more than 2."
ADPRO_TO_BACK
EXIT 10
END
PhaseAmount = 360/NumberOfFrames
/*
** Update the clips.
*/
SETCLIP( "FREDPhase", 0 )
SETCLIP( "FREDPhaseIncrement", PhaseAmount )
SETCLIP( "FREDOverrideLength", 0 )
EXIT 0